themingengine: don't set a line width before saving the cairo context
authorCosimo Cecchi <cosimoc@gnome.org>
Thu, 7 Apr 2011 19:22:18 +0000 (15:22 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 9 Apr 2011 00:34:00 +0000 (20:34 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=647086

gtk/gtkthemingengine.c

index 10bb949ca7513da093eeeda237af6d1b6cbd03c6..74d2d90abe2a8f75b8886bc87561d07ebbe81e7a 100644 (file)
@@ -1550,8 +1550,6 @@ render_background_internal (GtkThemingEngine *engine,
   if (border_width > 1 &&
       border_style == GTK_BORDER_STYLE_NONE)
     {
-      cairo_set_line_width (cr, border_width);
-
       x += (gdouble) border_width / 2;
       y += (gdouble) border_width / 2;
       width -= border_width;
@@ -1569,6 +1567,7 @@ render_background_internal (GtkThemingEngine *engine,
     return;
 
   cairo_save (cr);
+  cairo_set_line_width (cr, border_width);
   cairo_translate (cr, x, y);
 
   running = gtk_theming_engine_state_is_running (engine, GTK_STATE_PRELIGHT, &progress);